package com.frejoys.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frejoys.dao.entity.UserLevelMoney;
import com.frejoys.dao.entity.UserLevelStoreMoney;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserLevelStoreMoneyMapper extends BaseMapper<UserLevelStoreMoney> {

    // 推荐人id 查询所以推荐的店铺收益
    @Select("select store_id,money from j_user_level_store_money where user_id = #{userId}")
    List<UserLevelStoreMoney> storeMoneyByUserId(@Param("page") Page page,@Param("userId") Long userId);
}
